﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>表单管理 - {config.webname}</title>
<meta content="{config.webkeyword}" name="keywords" />
<meta content="{config.webdescription}" name="description" />
<link rel="stylesheet" href="{config.webpath}css/pagination.css" />
<link media="screen" type="text/css" href="<%templateskin%>/css/style.css" rel="stylesheet">
<script type="text/javascript" src="{config.webpath}scripts/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="{config.webpath}scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
<script type="text/javascript" src="<%templateskin%>/js/base.js"></script>
<script type="text/javascript">
	function ExecPostBack(checkValue) {
		if (arguments.length == 1) {
			ExecDelete('{config.webpath}tools/submit_ajax.ashx?action=user_message_delete', checkValue, 'turl');
		}else{
			var valueArr = '';
			$("input[name='checkId']:checked").each(function(i){
				valueArr += $(this).val();
				if(i < $("input[name='checkId']:checked").length - 1){
					valueArr += ","
				}
			});
			ExecDelete('{config.webpath}tools/submit_ajax.ashx?action=user_message_delete', valueArr, 'turl');
		}
    }
</script>
</head>

<body>
<!--Header-->
<%template src="_header.html"%>
<!--/Header-->

<div class="boxwrap">
  <div class="left180">
    <!--Sidebar-->
    <%template src="_ucenter_nav.html"%>
    <!--/Sidebar-->
  </div>
  
  <div class="right757">
    <h1 class="main_tit">
      <span><a href="<%linkurl("usercenter","index")%>">管理首页</a></span>
      表单管理
      <strong>Submints</strong>
    </h1>
    <%if(action=="1")%>
    <!--表单-->
    <div class="tab_head">
      <ul class="tabs">
        <li  class="selected" ><a href="<%linkurl("usersubmits","1")%>">表单一</a></li>
        <li><a href="<%linkurl("usersubmits","2")%>">表单二</a></li>
        <li><a href="<%linkurl("usersubmits","all")%>">所有表单</a></li>
      </ul>
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mtable">
      <%set DataTable list1=new DTcms.Web.Plugin.submits.submits().get_submits_list(10, page, "user_qq='1'", out totalcount)%> <!--取得一个DataTable-->
      <%set string pagelist1=get_page_link(10, page, totalcount, "usersubmits", action, "__id__")%> <!--取得分页页码列表-->
      <%loop dr list1%>
      <tr>
        <td><a href="<%linkurl("usersubmits_show",{dr[id]})%>">{dr[title]}</a></td>
        <td width="80"><a href="#"><%if({dr[reply_content]}=="")%>未回复<%else%>已回复<%/if%></a></td>
        <td width="150">{dr[add_time]}</td>
        <td width="38"><a href="<%linkurl("usersubmits_show",{dr[id]})%>">回复</a></td>
      </tr>
      <%/loop%>
      <%if(totalcount<1)%>
      <tr><td align="center">暂无记录</td></tr>
      <%/if%>
    </table>
    
    <div class="page_foot">
      <div class="flickr right">{pagelist1}</div><!--放置页码列表-->
    </div>
    <input id="turl" type="hidden" value="<%linkurl("usersubmits","1")%>" />
    <!--表单-->
    
    <!--表单-->
    <%else if(action=="2")%>
    <div class="tab_head">
      <ul class="tabs">
        <li><a href="<%linkurl("usersubmits","1")%>">表单一</a></li>
        <li class="selected"><a href="<%linkurl("usersubmits","2")%>">表单二</a></li>
        <li><a href="<%linkurl("usersubmits","all")%>">所有表单</a></li>
      </ul>
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mtable">
      <%set DataTable list1=new DTcms.Web.Plugin.submits.submits().get_submits_list(10, page, "user_qq='2'", out totalcount)%> <!--取得一个DataTable-->
      <%set string pagelist1=get_page_link(10, page, totalcount, "usersubmits", action, "__id__")%> <!--取得分页页码列表-->
      <%loop dr list1%>
      <tr>
        <td><a href="<%linkurl("usersubmits_show",{dr[id]})%>">{dr[title]}</a></td>
        <td width="80"><a href="#"><%if({dr[reply_content]}=="")%>未回复<%else%>已回复<%/if%></a></td>
        <td width="150">{dr[add_time]}</td>
        <td width="38"><a href="<%linkurl("usersubmits_show",{dr[id]})%>">回复</a></td>
      </tr>
      <%/loop%>
      <%if(totalcount<1)%>
      <tr><td align="center">暂无记录</td></tr>
      <%/if%>
    </table>
    
    <div class="page_foot">
      <div class="flickr right">{pagelist1}</div><!--放置页码列表-->
    </div>
    <input id="turl" type="hidden" value="<%linkurl("usersubmits","2")%>" />
    <!--/表单-->
    
    <%else if(action=="all")%>
    <!--表单-->
    <div class="tab_head">
      <ul class="tabs">
        <li><a href="<%linkurl("usersubmits","1")%>">表单一</a></li>
        <li ><a href="<%linkurl("usersubmits","2")%>">表单二</a></li>
        <li class="selected"><a href="<%linkurl("usersubmits","all")%>">所有表单</a></li>
      </ul>
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="mtable">
      <%set DataTable list1=new DTcms.Web.Plugin.submits.submits().get_submits_list(10, page, "", out totalcount)%> <!--取得一个DataTable-->
      <%set string pagelist1=get_page_link(10, page, totalcount, "usersubmits", action, "__id__")%> <!--取得分页页码列表-->
      <%loop dr list1%>
      <tr>
        <td><a href="<%linkurl("usersubmits_show",{dr[id]})%>">{dr[title]}</a></td>
        <td width="80"><a href="#"><%if({dr[reply_content]}=="")%>未回复<%else%>已回复<%/if%></a></td>
        <td width="150">{dr[add_time]}</td>
        <td width="38"><a href="<%linkurl("usersubmits_show",{dr[id]})%>">回复</a></td>
      </tr>
      <%/loop%>
      <%if(totalcount<1)%>
      <tr><td align="center">暂无记录</td></tr>
      <%/if%>
    </table>
    
    <div class="page_foot">
      <div class="flickr right">{pagelist1}</div><!--放置页码列表-->
    </div>
    <input id="turl" type="hidden" value="<%linkurl("usersubmits","all")%>" />
    <!--表单-->
    <%/if%>
    
  </div>
</div>

<div class="clear"></div>

<!--Footer-->
<%template src="_footer.html"%>
<!--/Footer-->
</body>
</html>
